package com.weddingee.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


public class ViewDto<T> implements Serializable{
	public static final String MSG_SUCCESS = "success";
	public static final String MSG_ERROR = "error";
	private String msg = MSG_ERROR;
	private int flag = 0;
	private String sign ="0";
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	/** messageType为error时对errorDetail的描述 */
	private String errorDetail;
	private List<T> listData = new ArrayList<T>();
	private T data;
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<T> getListData() {
		return listData;
	}

	public void setListData(List<T> listData) {
		this.listData = listData;
	}

	public String getErrorDetail() {
		return errorDetail;
	}

	public void setErrorDetail(String errorDetail) {
		this.errorDetail = errorDetail;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}
